<?php
class Mwc_SystemPoint_Block_Membership_New_Form extends Mage_Adminhtml_Block_Widget_Form{
    protected function _prepareForm(){
        $form = new Varien_Data_Form();
 
        $fieldset = $form->addFieldset('new_membership', array('legend' => Mage::helper('systempoint')->__('Membership Details')));
        $fieldset->addField('title', 'text', array(
            'name'      => 'title',
            'title'     => Mage::helper('systempoint')->__('Level'),
            'label'     => Mage::helper('systempoint')->__('Level'),
            'required'  => true,
        ));
        $fieldset->addField('number_of_point', 'text', array(
            'name'      => 'number_of_point',
            'title'     => Mage::helper('systempoint')->__('Number of point'),
            'label'     => Mage::helper('systempoint')->__('Number of point'),
            'required'  => true,
        ));
        $fieldset->addField('percent_discount', 'text', array(
            'name'      => 'percent_discount',
            'title'     => Mage::helper('systempoint')->__('Percent discount'),
            'label'     => Mage::helper('systempoint')->__('Percent discount'),
            'required'  => true,
        ));
		$fieldset->addField('icon_path', 'file', array(
            'name' 		=> 'icon_path',
            'label' 	=> Mage::helper('systempoint')->__('Icon'),
            'title'     => Mage::helper('systempoint')->__('Icon'),
            'required' 	=> true,
        ));
        
        $form->setMethod('post');
        $form->setData('enctype', 'multipart/form-data');
        $form->setUseContainer(true);
        $form->setId('edit_form');
        $form->setAction($this->getUrl('*/*/post'));
 
        $this->setForm($form);
    }
}